<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form>
	<table>
		<c:forEach items="${sessionScope.wareHouseList }" var="wareHouse">
<%-- 		<c:if test="${sessionScope.uid == wareHouse.id }"> --%>

			<c:if test="${sessionScope.uid == wareHouse.id}">
				<td><a href="goto?id=${wareHouse.id }" style="color:red">${wareHouse.addr }</a></td>
			</c:if>
			<c:if test="${sessionScope.uid != wareHouse.id}">
				<td><a href="goto?id=${wareHouse.id }" style="color:green">${wareHouse.addr }</a></td>
			</c:if>
		</c:forEach>
		<c:forEach items="${sessionScope.list }" var="goods">
			<tr>
	 			<td>${goods.id }</td>
	 			<td>${goods.name }</td>
	 			<td>${goods.price }</td>
	 			<td>${goods.count }</td>
	 			<td><fmt:formatDate value="${goods.pd }" pattern="yyyy-MM-dd"/></td>
	 			<td><a href="delete?id=${goods.id }">delete</a><td>
	 			<td><a href="update?id=${goods.id }&goods=${goods }">update</a></td><br/>
	 		</tr>
		</c:forEach>
	</table>
	</form>
</body>
</html>